#ifndef BULLET_H
#define BULLET_H
#include <QPixmap>
#include "config.h"

class Bullet
{
public:
    Bullet();

    //更新子弹
    void updatePosition();

public:
    //子弹资源
    QPixmap m_Bullet;

    //子弹坐标
    int m_X;
    int m_Y;

    //子弹移动速度
    int m_Speed;

    //子弹是否闲置
    bool m_Free;

    //子弹矩形框
    QRect m_Rect;

};

#endif // BULLET_H
